/* 通过媒体查询更改最大容器的尺寸 */
@media screen and (min-width:1280px){
  .container{
    width: 1280px;
  }
}

body{
  background-color: #f5f5f5;
}

.container{
  background-color: #fff;
}

/* header区域的样式 */
header{
  padding-left: 0 !important;
}
header .logo{
  margin: 0;
  background-color: #6c94d5;
}
header .logo a{
  display: block;
}
/* header .logo a img{
  display: block;
  width: 100%;
} */

header .logo a span{
  display: block;
  height: 50px;
  font-size: 18px;
  line-height: 50px;
  text-align: center;
  color: #fff;
}


/* nav */
header nav{
  background-color: #eee;
  border-bottom: 1px solid #ccc;
}
header nav a{
  display: block !important;
  padding-left: 30px;
  height: 50px;
  color: #666;
  font-size: 16px;
  line-height: 50px !important;
}
header nav a:hover{
  text-decoration: none;
  color: #333;
  background-color: #fff;
}
header nav a::before{
  margin-right: 5px;
  vertical-align: middle;
}

main .news{
  border-bottom: 1px solid #ccc;
}
main .news li{
  float: left;
  width: 25%;
  height: 128px;
  padding-right: 10px;
  margin-bottom: 10px;
}
main .news li:nth-child(1){
  width: 50%;
  height: 266px;
}
main .news li a{
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
main .news li a img{
  display: block;
  width: 100%;
  height: 100%;
}
main .news li a p{
  position: absolute;
  bottom: 0;
  left: 0;
  height: 41px;
  margin: 0;
  width: 100%;
  padding: 5px 10px 0;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}
main .news li a p:nth-child(1){
  padding: 0 10px;
  font-size: 20px;
  line-height: 41px;
}
main .publish .publish-box{
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}
main .publish .publish-box img{
  padding-top: 10px;
}

/* 侧边栏 */
aside .banner{
  display: block;
  width: 100%;
  margin-bottom: 20px;
}
aside .hot{
  display: block;
  padding: 0 20px 20px;
  border: 1px solid #ccc
}
aside .hot button{
  border-radius: 0;
  margin-bottom: 10px;
}
aside .hot{
  text-decoration: none;
}
aside .hot p{
  font-size: 12px;
}

/* 媒体查询制作响应式效果 */
@media screen and (min-width: 768px){
  header .logo img{
    margin: 0 auto;
  }
}

@media screen and (max-width: 991px){
  header nav a{
    float: left;
    width: 20%;
  }
}
@media screen and (max-width: 767px){
  header nav a{
    font-size: 14px;
  }
}
/* 超小屏幕 */
@media screen and (max-width:767px){
  header nav a{
    font-size: 14px;
  }
  main .news li{
    width: 50%;
  }
  main .news li:nth-child(1){
    width: 100%;
  }
  main .publish .publish-box h3{
    font-size: 16px;
  }
}

